<%@page import="com.dd.shop4j.goods.model.GoodsCateg"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
<head>
<title>商品分类</title>
<%@ include file="../../../common/admin_taglib.jsp" %>
<link rel="stylesheet" type="text/css" href="${ctx}/resources/js/jquery-easyui-1.3.3/themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css" href="${ctx}/resources/js/jquery-easyui-1.3.3/themes/icon.css">
<script type="text/javascript" src="${ctx}/resources/js/jquery-easyui-1.3.3/jquery.easyui.min.js"></script>
<script type="text/javascript">
$(function(){
	$("#parentIdTree").combotree({
		url : "${ctx}/admin/categ/gridTree"
	});
});
</script>
</head>
<body>

<h1 class="page-title">Shop4j 管理中心</h1>
<ul class="breadcrumb">
	 <li><a href="${ctx}/admin/main">管理中心</a><span class="divider">/</span></li>
     <li><a href="${ctx}/admin/categ">商品分类</a><span class="divider">/</span></li>
     <li class="active">商品分类信息</li>
</ul>
<form:form id="saveForm" method="post" commandName="categ">
<div class="row-fluid">
	<div class="btn-toolbar">
		<dd:token></dd:token>
    	<button type="button" class="btn btn-primary" onclick="$('#saveForm').submit();"><i class="icon-ok"></i> 保存</button>
    	<input class="btn" value="重置" type="reset"/>
  		<div class="btn-group"></div>
	</div>

	<div class="well">
	    <label>分类Code</label>
        <form:input path="code" class="input-xlarge validate" validate="empty,len(4|10)" />
        
        <label>分类名称</label>
        <form:input path="name" class="input-xxlarge validate" validate="empty"/>
        
        <label>名称样式</label>
        <form:input path="nameStyle" class="input-xxlarge" />
        
        <label>父节点</label>
        <form:input path="parentId" id="parentIdTree" class="input-middle" style="height:30px;" />
        
        <label style="margin-top: 10px;">排序</label>
        <form:input path="sortOrder" class="input-small" />
        
        <label>SEO关键字</label>
        <form:textarea path="seoKeyword" rows="3" class="input-xxlarge"></form:textarea>
        
        <label>SEO描述</label>
        <form:textarea path="seoDescription" rows="5" class="input-xxlarge"></form:textarea>
        
	</div>
</div>
</form:form>

</body>
</html>
